<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>vuejs练习</title>
    <link rel="stylesheet" type="text/css" href="index.css">
	<script type="x/template" id="modal-template">
		<div class="modal-mask" v-show="show" transition="modal">
			<div class="modal-wrapper">
				<div class="modal-container">
					<div class="modal-header">
						<slot name="header">
							default header
						</slot>
					</div>

					<div class="modal-body">
						<slot name="body">
							default body
						</slot>
					</div>

					<div class="modal-footer">
						<slot name="footer">
							default footer
							<button class="modal-default-button" @click="show = false">
								OK
							</button>
						</slot>
					</div>
				</div>
			</div>
		</div>
	</script>
</head>
<body>
    <div id="app">
        <button id="show-modal" @click="showModal = true">Show Modal</button>
		<modal :show.sync="showModal">
			<h3 slot="header">custom header</h3>
			<!--<h3 slot="body">custom test</h3>-->
		</modal>
    </div>
    <script src='../vue.min.js'></script>
    <script src="index.js"></script>
</body>
</html>
